/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package caro.app.bussiness;

import caro.client.gui.ImageProvider;

/**
 *
 * @author NQ
 */
public class ClientUtil {
    
    public static final int ROWS = 15;
    public static final int COLUMNS = 15;
    public static final int NUM_WIN = 5;
    public static final char WIN_ROW = 'R';
    public static final char WIN_COLUMN = 'C';
    public static final char WIN_C1 = '1';
    public static final char WIN_C2 = '2';
    
    private static ClientUtil INSTANCE = null;
    private static final int X = 0;
    private static final int Y = 1;
    public static ClientUtil getInstance(){
        if(INSTANCE == null){
            INSTANCE = new ClientUtil();
        }
        return INSTANCE;
    }
    private ClientUtil(){
        
    }
    public Object getPawnDisplay(int num){
        if(X == num){
            return ImageProvider.getInstance().getImage("x.gif");
        }else if(Y == num)
            return ImageProvider.getInstance().getImage("o.gif");
        return null;
    }
}
